package cn.sofwin.day0120.homework.Customer;

import java.util.Scanner;

public class MainTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String judge = "y";
        CustomerBiz customer = new CustomerBiz();
        while ("y".equals(judge)){
            System.out.println("请输入客户的姓名：");
            String fullName = sc.nextLine();
            customer.addName(fullName);
            System.out.println("继续输入吗？（y/n）：");
            judge = sc.nextLine();
        }
        System.out.println("*********************");
        System.out.println("\t\t客户姓名列表：");
        System.out.println("*********************");
        customer.showNames();
    }
}
